package com.example.bookshop.mapper;

import com.example.bookshop.entity.OrderDetail;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @auth shanyue
 * @date 2025年06月04日18:52
 */
@Mapper
public interface OrderDetailMapper {
    @Insert("INSERT INTO order_details(order_id, book_id, quantity, price) " +
            "VALUES(#{orderId}, #{bookId}, #{quantity}, #{price})")
    void insert(OrderDetail orderDetail);
}
